package com.ztc.ZtcRefundRatio.bean;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import com.aqgj.util.BaseEntity;

import java.math.BigDecimal;

@Entity
@Table(name = "ztc_refund_ratio")
public class ZtcRefundRatio implements BaseEntity{

    private String id;//

    private Integer startTime;//开始时间（时间节点“0”表示发车时刻点，单位为小时）

    private Integer endTime;//结束时间（时间节点“0”表示发车时刻点，单位为小时）

    private BigDecimal chargeScale;//扣费比例（%）

    private String isRefund;//是否允许退票（1允许，2不允许）

    private String ztcRefundRatioInfoId;//退款比例设置信息ID

    private String disabled;//前端标识

    public void setId(String value){ this.id = value;}
    public void setStartTime(Integer startTime) { this.startTime = startTime;}
    public void setEndTime(Integer endTime) { this.endTime = endTime;}
    public void setChargeScale(BigDecimal chargeScale) { this.chargeScale = chargeScale;}
    public void setIsRefund(String isRefund) { this.isRefund = isRefund;}
    public void setZtcRefundRatioInfoId(String ztcRefundRatioInfoId) { this.ztcRefundRatioInfoId = ztcRefundRatioInfoId;}
    public void setDisabled(String disabled) { this.disabled = disabled;}

    @Id
    @GeneratedValue(generator = "system-uuid")
    @GenericGenerator(name = "system-uuid", strategy = "uuid")
    @Column(name ="id",unique=true,nullable=false,insertable=true,updatable=true,length=32)
    public String getId(){
        return this.id;
    }
    @Column(name ="start_time",unique=false,nullable=true,insertable=true,updatable=true,length=11)
    public Integer getStartTime() { return startTime;}
    @Column(name ="end_time",unique=false,nullable=true,insertable=true,updatable=true,length=11)
    public Integer getEndTime() { return endTime;}
    @Column(name ="charge_scale",unique=false,nullable=true,insertable=true,updatable=true,length=10)
    public BigDecimal getChargeScale() { return chargeScale;}
    @Column(name ="is_refund",unique=false,nullable=true,insertable=true,updatable=true,length=4)
    public String getIsRefund() { return isRefund;}
    @Column(name ="ztc_refund_ratio_info_id",unique=false,nullable=true,insertable=true,updatable=true,length=32)
    public String getZtcRefundRatioInfoId() { return ztcRefundRatioInfoId;}
    @Column(name ="disabled",unique=false,nullable=true,insertable=true,updatable=true,length=20)
    public String getDisabled() {  return disabled; }
}
